package com.lukebang.service;

import java.util.List;

import com.lukebang.pojo.Territory;

/**
 * 
 * ITerritoryService 上午11:17:36
 * 
 * Copyright zhaocj Inc. All rights reserved. Love ME Like Justin Bieber.
 */

public interface ITerritoryService {

	List<Territory> selectAvailableProvinceByWorker();

	List<Territory> selectAvailableCityByProvince(String provinceCode);

	Territory selectTerritoryPriceByCity(String provinceCode, String cityCode);

	List<Territory> selectAvailableCountryByCity(String cityCode);

	// 查询所有的省份
	public List<Territory> findAllProvince(Integer level);

	// 查询所有的市
	public List<Territory> findAllCity(String parentId);

	// 查询所有的县
	public List<Territory> findAllCountry(String code);

	public boolean isCovered(String name);

	// 查询所选区域覆盖的师父的个数
	public Integer selectCountWorkerByName(String name);
}
